#include <iostream>
#include <signal.h>
using namespace std;

void sigcb(int signum)
{
    cout << "my signum: " << signum << endl;
}

int main()
{
    signal(SIGINT, sigcb);
    while (1)
    {
        sleep(1);
    }

    return 0;
}